<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 08:58:26 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>git range-diff</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Inspection_and_Comparison">
                                Inspection and Comparison                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="95b27e639398ce5123ff7b30a4abcd34e2dad250f0fb003912b56bee10986029/f1" data-source="git-range-diff" onmousemove="i18n(this)">git-range-diff</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="847e21e420a55fd57400add73f2c654553a279e10a60c2d8f6d8036cc2a6ac83/6e" data-source="git-range-diff - Compare two commit ranges (e.g. two versions of a branch)" onmousemove="i18n(this)">git-range-diff &mdash; &scy;&rcy;&acy;&vcy;&ncy;&icy;&tcy;&softcy; &dcy;&vcy;&acy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy;&acy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &dcy;&vcy;&iecy; &vcy;&iecy;&rcy;&scy;&icy;&icy; &vcy;&iecy;&tcy;&kcy;&icy;)</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-xml">git range-diff [--color=[<span class="hljs-tag">&lt;<span class="hljs-name">when</span>&gt;</span>]] [--no-color] [<span class="hljs-tag">&lt;<span class="hljs-name">diff-options</span>&gt;</span>]
        [--no-dual-color] [--creation-factor=<span class="hljs-tag">&lt;<span class="hljs-name">factor</span>&gt;</span>]
        [--left-only | --right-only]
        ( <span class="hljs-tag">&lt;<span class="hljs-name">range1</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">range2</span>&gt;</span> | <span class="hljs-tag">&lt;<span class="hljs-name">rev1</span>&gt;</span>&hellip;&ZeroWidthSpace;<span class="hljs-tag">&lt;<span class="hljs-name">rev2</span>&gt;</span> | <span class="hljs-tag">&lt;<span class="hljs-name">base</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">rev1</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">rev2</span>&gt;</span> )
        [[--] <span class="hljs-tag">&lt;<span class="hljs-name">path</span>&gt;</span>&hellip;&ZeroWidthSpace;]</pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="ce8c9f9137e8e05194ee1de001d7c681e6995bf4c8806e99675d8505a3bc4680/0e" data-source="This command shows the differences between two versions of a patch series, or more generally, two commit ranges (ignoring merge commits)." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&yacy; &mcy;&iecy;&zhcy;&dcy;&ucy; &dcy;&vcy;&ucy;&mcy;&yacy; &vcy;&iecy;&rcy;&scy;&icy;&yacy;&mcy;&icy; &scy;&iecy;&rcy;&icy;&icy; &pcy;&acy;&tcy;&chcy;&iecy;&jcy; &icy;&lcy;&icy;, &vcy; &bcy;&ocy;&lcy;&iecy;&iecy; &ocy;&bcy;&shchcy;&iecy;&mcy; &scy;&mcy;&ycy;&scy;&lcy;&iecy;, &dcy;&vcy;&ucy;&mcy;&yacy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy;&acy;&mcy;&icy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy; (&icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&yacy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ycy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;).</span></p> <p><span data-i18n="a57116cdcd4e2444e1ce9e4c5c59ed2d73ce5bf4af284e199c4603c5af602ef1/0f" data-source="In the presence of &lt;code&gt;&amp;lt;path&amp;gt;&lt;/code&gt; arguments, these commit ranges are limited accordingly." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &ncy;&acy;&lcy;&icy;&chcy;&icy;&icy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy;  <code>&lt;path&gt;</code>  &ecy;&tcy;&icy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy;&ycy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&icy;&vcy;&acy;&yucy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="745d1be41d23d890b27bcc8c2bc54f8aafd17b3cc6c52f891acf3c78cf62305b/bd" data-source="To that end, it first finds pairs of commits from both commit ranges that correspond with each other. Two commits are said to correspond when the diff between their patches (i.e. the author information, the commit message and the commit diff) is reasonably small compared to the patches&amp;apos; size. See ``Algorithm`` below for details." onmousemove="i18n(this)">&Dcy;&lcy;&yacy; &ecy;&tcy;&ocy;&gcy;&ocy; &ocy;&ncy; &scy;&ncy;&acy;&chcy;&acy;&lcy;&acy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy; &pcy;&acy;&rcy;&ycy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy; &icy;&zcy; &ocy;&bcy;&ocy;&icy;&khcy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy;&ocy;&vcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &dcy;&rcy;&ucy;&gcy; &dcy;&rcy;&ucy;&gcy;&ucy;. &Gcy;&ocy;&vcy;&ocy;&rcy;&yacy;&tcy;, &chcy;&tcy;&ocy; &dcy;&vcy;&acy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy;, &kcy;&ocy;&gcy;&dcy;&acy; &rcy;&acy;&zcy;&ncy;&icy;&tscy;&acy; &mcy;&iecy;&zhcy;&dcy;&ucy; &icy;&khcy; &pcy;&acy;&tcy;&chcy;&acy;&mcy;&icy; (&tcy;.&iecy;. &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yacy; &ocy;&bcy; &acy;&vcy;&tcy;&ocy;&rcy;&iecy;, &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&iecy; &icy; &rcy;&acy;&zcy;&ncy;&icy;&tscy;&acy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;) &dcy;&ocy;&scy;&tcy;&acy;&tcy;&ocy;&chcy;&ncy;&ocy; &mcy;&acy;&lcy;&acy; &pcy;&ocy; &scy;&rcy;&acy;&vcy;&ncy;&iecy;&ncy;&icy;&yucy; &scy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy;&ocy;&mcy; &pcy;&acy;&tcy;&chcy;&iecy;&jcy;. &Pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&scy;&tcy;&icy; &scy;&mcy;. &vcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy; &laquo;&Acy;&lcy;&gcy;&ocy;&rcy;&icy;&tcy;&mcy;&raquo; &ncy;&icy;&zhcy;&iecy;.</span></p> <p><span data-i18n="47900604d993fbc75322b8aca0dbf3a3747106bfe858d7639d76389d6696587f/6f" data-source="Finally, the list of matching commits is shown in the order of the second commit range, with unmatched commits being inserted just after all of their ancestors have been shown." onmousemove="i18n(this)">&Ncy;&acy;&kcy;&ocy;&ncy;&iecy;&tscy;, &scy;&pcy;&icy;&scy;&ocy;&kcy; &scy;&ocy;&vcy;&pcy;&acy;&dcy;&acy;&yucy;&shchcy;&icy;&khcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&iecy; &vcy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy;&acy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;, &pcy;&rcy;&icy; &ecy;&tcy;&ocy;&mcy; &ncy;&iecy;&scy;&ocy;&vcy;&pcy;&acy;&dcy;&acy;&yucy;&shchcy;&icy;&iecy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ycy; &vcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &scy;&rcy;&acy;&zcy;&ucy; &pcy;&ocy;&scy;&lcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &kcy;&acy;&kcy; &pcy;&ocy;&kcy;&acy;&zcy;&acy;&ncy;&ycy; &vcy;&scy;&iecy; &icy;&khcy; &pcy;&rcy;&iecy;&dcy;&kcy;&icy;.</span></p> <p><span data-i18n="1e5fcd2e9a0957cc56a3cb8b7852a0eeedf5609b75326dc919aa9c152df60da4/c3" data-source="There are three ways to specify the commit ranges:" onmousemove="i18n(this)">&Scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &tcy;&rcy;&icy; &scy;&pcy;&ocy;&scy;&ocy;&bcy;&acy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy;&ycy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;:</span></p> <div> <ul> <li> <p><span data-i18n="e60d0d788204ecd62ff55a33645da0e443ecb8b3cf7cd9c62ef8f20ddd16c377/58" data-source="&lt;code&gt;&amp;lt;range1&amp;gt; &amp;lt;range2&amp;gt;&lt;/code&gt;: Either commit range can be of the form &lt;code&gt;&amp;lt;base&amp;gt;..&amp;lt;rev&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;rev&amp;gt;^!&lt;/code&gt; or &lt;code&gt;&amp;lt;rev&amp;gt;^-&amp;lt;n&amp;gt;&lt;/code&gt;. See &lt;code&gt;SPECIFYING RANGES&lt;/code&gt; in &lt;a href=&quot;gitrevisions&quot;&gt;gitrevisions[7]&lt;/a&gt; for more details." onmousemove="i18n(this)"><code>&lt;range1&gt; &lt;range2&gt;</code> : &Lcy;&yucy;&bcy;&ocy;&jcy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &mcy;&ocy;&zhcy;&iecy;&tcy; &icy;&mcy;&iecy;&tcy;&softcy; &fcy;&ocy;&rcy;&mcy;&ucy;  <code>&lt;base&gt;..&lt;rev&gt;</code> ,  <code>&lt;rev&gt;^!</code>  &icy;&lcy;&icy;  <code>&lt;rev&gt;^-&lt;n&gt;</code> . &Bcy;&ocy;&lcy;&iecy;&iecy; &pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ucy;&yucy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &scy;&mcy;. &vcy;  <code>SPECIFYING RANGES</code>  &vcy;  <a href="gitrevisions.html">gitrevisions[7]</a> .</span></p> </li> <li> <p><span data-i18n="b3c9b58a9c40c33f9c09a246c986bbbd60a818c35596c9ff5ba5fbe137fff379/7e" data-source="&lt;code&gt;&amp;lt;rev1&amp;gt;...&amp;lt;rev2&amp;gt;&lt;/code&gt;. This is equivalent to &lt;code&gt;&amp;lt;rev2&amp;gt;..&amp;lt;rev1&amp;gt; &amp;lt;rev1&amp;gt;..&amp;lt;rev2&amp;gt;&lt;/code&gt;." onmousemove="i18n(this)"><code>&lt;rev1&gt;...&lt;rev2&gt;</code> . &Ecy;&tcy;&ocy; &ecy;&kcy;&vcy;&icy;&vcy;&acy;&lcy;&iecy;&ncy;&tcy;&ncy;&ocy;  <code>&lt;rev2&gt;..&lt;rev1&gt; &lt;rev1&gt;..&lt;rev2&gt;</code> .</span></p> </li> <li> <p><span data-i18n="20b6217c6ed35bb8ec18e5105be52294896b5d64d326876e220dba15033c884d/01" data-source="&lt;code&gt;&amp;lt;base&amp;gt; &amp;lt;rev1&amp;gt; &amp;lt;rev2&amp;gt;&lt;/code&gt;: This is equivalent to &lt;code&gt;&amp;lt;base&amp;gt;..&amp;lt;rev1&amp;gt;
&amp;lt;base&amp;gt;..&amp;lt;rev2&amp;gt;&lt;/code&gt;." onmousemove="i18n(this)"><code>&lt;base&gt; &lt;rev1&gt; &lt;rev2&gt;</code> : &ecy;&kcy;&vcy;&icy;&vcy;&acy;&lcy;&iecy;&ncy;&tcy;  <code>&lt;base&gt;..&lt;rev1&gt;
&lt;base&gt;..&lt;rev2&gt;</code> .</span></p> </li> </ul> </div> </div> <h2 class="text-body-emphasis"  id="_options"><span data-i18n="d0db8b5e364b6989e4b8f38a2b3846b87d99a51c1592ebf35d21cc66405a8e39/b6" data-source="Options" onmousemove="i18n(this)">Options</span></h2> <div> <div> <dl> <dt id="Documentation/git-range-diff.txt---no-dual-color"><span data-i18n="5bcdd3373b8295b076b4b2247722e8c4a5669ad3065e6f1b64904b1b302f0fae/86" data-source="--no-dual-color" onmousemove="i18n(this)">--no-dual-color</span></dt> <dd> <p><span data-i18n="23edc5288333003ed64bbd2f15df10c10b9f05232dc125a696e410a55d41e179/32" data-source="When the commit diffs differ, &lt;code&gt;git range-diff&lt;/code&gt; recreates the original diffs&amp;apos; coloring, and adds outer -/+ diff markers with the &lt;strong&gt;background&lt;/strong&gt; being red/green to make it easier to see e.g. when there was a change in what exact lines were added." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&yacy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&acy;&yucy;&tcy;&scy;&yacy;,  <code>git range-diff</code>  &vcy;&ocy;&scy;&scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy; &tscy;&vcy;&iecy;&tcy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ycy;&khcy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy; &icy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &vcy;&ncy;&iecy;&shcy;&ncy;&icy;&iecy; &mcy;&acy;&rcy;&kcy;&iecy;&rcy;&ycy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy; -/+ &scy; &kcy;&rcy;&acy;&scy;&ncy;&ycy;&mcy;/&zcy;&iecy;&lcy;&iecy;&ncy;&ycy;&mcy; &fcy;&ocy;&ncy;&ocy;&mcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &bcy;&ycy;&lcy;&ocy; &lcy;&iecy;&gcy;&chcy;&iecy; &ucy;&vcy;&icy;&dcy;&iecy;&tcy;&softcy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &kcy;&ocy;&gcy;&dcy;&acy; &pcy;&rcy;&ocy;&icy;&zcy;&ocy;&shcy;&lcy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &vcy; &tcy;&ocy;&mcy;, &kcy;&acy;&kcy;&icy;&iecy; &icy;&mcy;&iecy;&ncy;&ncy;&ocy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &bcy;&ycy;&lcy;&icy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy;.</span></p> <p><span data-i18n="8d7ef342453c97fd341c24cde5ab681857c908964b1bab9ffd80f8a504292ba2/31" data-source="Additionally, the commit diff lines that are only present in the first commit range are shown &amp;quot;dimmed&amp;quot; (this can be overridden using the &lt;code&gt;color.diff.&amp;lt;slot&amp;gt;&lt;/code&gt; config setting where &lt;code&gt;&amp;lt;slot&amp;gt;&lt;/code&gt; is one of &lt;code&gt;contextDimmed&lt;/code&gt;, &lt;code&gt;oldDimmed&lt;/code&gt; and &lt;code&gt;newDimmed&lt;/code&gt;), and the commit diff lines that are only present in the second commit range are shown in bold (which can be overridden using the config settings &lt;code&gt;color.diff.&amp;lt;slot&amp;gt;&lt;/code&gt; with &lt;code&gt;&amp;lt;slot&amp;gt;&lt;/code&gt; being one of &lt;code&gt;contextBold&lt;/code&gt;, &lt;code&gt;oldBold&lt;/code&gt; or &lt;code&gt;newBold&lt;/code&gt;)." onmousemove="i18n(this)">&Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &scy;&tcy;&rcy;&ocy;&kcy;&icy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy; &pcy;&iecy;&rcy;&vcy;&ocy;&mcy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy;&iecy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&yucy;&tcy;&scy;&yacy;  &quot;dimmed&quot;  (&ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &pcy;&iecy;&rcy;&iecy;&ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&icy;&tcy;&softcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>color.diff.&lt;slot&gt;</code> , &gcy;&dcy;&iecy;  <code>&lt;slot&gt;</code>  &mdash; &ocy;&dcy;&icy;&ncy; &icy;&zcy;  <code>contextDimmed</code>  ,  <code>oldDimmed</code>  &icy;  <code>newDimmed</code>  ), &acy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy; &vcy;&tcy;&ocy;&rcy;&ocy;&jcy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &vcy;&ycy;&dcy;&iecy;&lcy;&iecy;&ncy; &zhcy;&icy;&rcy;&ncy;&ycy;&mcy; &shcy;&rcy;&icy;&fcy;&tcy;&ocy;&mcy; (&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &pcy;&iecy;&rcy;&iecy;&ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&icy;&tcy;&softcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&iecy;&kcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>color.diff.&lt;slot&gt;</code> , &gcy;&dcy;&iecy;  <code>&lt;slot&gt;</code>  &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&dcy;&ncy;&icy;&mcy; &icy;&zcy;  <code>contextBold</code>  ,  <code>oldBold</code>  &icy;&lcy;&icy;  <code>newBold</code>  ).</span></p> <p><span data-i18n="f900feed17bca5febadc31f0deac03655f8f1140bea42f9eca7b1feb0f0bd80f/3f" data-source="This is known to &lt;code&gt;range-diff&lt;/code&gt; as &amp;quot;dual coloring&amp;quot;. Use &lt;code&gt;--no-dual-color&lt;/code&gt; to revert to color all lines according to the outer diff markers (and completely ignore the inner diff when it comes to color)." onmousemove="i18n(this)">&Ocy;&ncy; &icy;&zcy;&vcy;&iecy;&scy;&tcy;&iecy;&ncy;  <code>range-diff</code>  &kcy;&acy;&kcy;  &quot;dual coloring&quot; . &Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy;  <code>--no-dual-color</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &vcy;&iecy;&rcy;&ncy;&ucy;&tcy;&softcy;&scy;&yacy; &kcy; &rcy;&acy;&scy;&kcy;&rcy;&acy;&shcy;&icy;&vcy;&acy;&ncy;&icy;&yucy; &vcy;&scy;&iecy;&khcy; &lcy;&icy;&ncy;&icy;&jcy; &vcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&icy; &scy; &vcy;&ncy;&iecy;&shcy;&ncy;&icy;&mcy;&icy; &mcy;&acy;&rcy;&kcy;&iecy;&rcy;&acy;&mcy;&icy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy; (&icy; &pcy;&ocy;&lcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &vcy;&ncy;&ucy;&tcy;&rcy;&iecy;&ncy;&ncy;&icy;&iecy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &dcy;&iecy;&lcy;&ocy; &kcy;&acy;&scy;&acy;&iecy;&tcy;&scy;&yacy; &tscy;&vcy;&iecy;&tcy;&acy;).</span></p> </dd> <dt id="Documentation/git-range-diff.txt---creation-factorltpercentgt"><span data-i18n="e9c1b100c80ca0f836fc602e20847568b2fd5f21e89032f45ad58121c44599c2/b5" data-source="--creation-factor=&amp;lt;percent&amp;gt;" onmousemove="i18n(this)">--creation-factor=&lt;percent&gt;</span></dt> <dd> <p><span data-i18n="b3664516b8125e8596b87bb7342182c293a5bf04cee9474859fc595287de49ea/bd" data-source="Set the creation/deletion cost fudge factor to &lt;code&gt;&amp;lt;percent&amp;gt;&lt;/code&gt;. Defaults to 60. Try a larger value if &lt;code&gt;git range-diff&lt;/code&gt; erroneously considers a large change a total rewrite (deletion of one commit and addition of another), and a smaller one in the reverse case. See the ``Algorithm`` section below for an explanation of why this is needed." onmousemove="i18n(this)">&Ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&iecy; &kcy;&ocy;&ecy;&fcy;&fcy;&icy;&tscy;&icy;&iecy;&ncy;&tcy; &ncy;&iecy;&tcy;&ocy;&chcy;&ncy;&ocy;&scy;&tcy;&icy; &scy;&tcy;&ocy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy;/&ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&yacy; &ncy;&acy;  <code>&lt;percent&gt;</code>  . &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &mdash; 60. &Pcy;&ocy;&pcy;&rcy;&ocy;&bcy;&ucy;&jcy;&tcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &bcy;&ocy;&lcy;&softcy;&shcy;&iecy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;, &iecy;&scy;&lcy;&icy;  <code>git range-diff</code>  &ocy;&shcy;&icy;&bcy;&ocy;&chcy;&ncy;&ocy; &scy;&chcy;&icy;&tcy;&acy;&iecy;&tcy; &bcy;&ocy;&lcy;&softcy;&shcy;&ocy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &pcy;&ocy;&lcy;&ncy;&ocy;&jcy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&softcy;&yucy; (&ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy; &icy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &dcy;&rcy;&ucy;&gcy;&ocy;&gcy;&ocy;), &icy; &mcy;&iecy;&ncy;&softcy;&shcy;&iecy;&iecy; &mdash; &vcy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy;. &Scy;&mcy;. &rcy;&acy;&zcy;&dcy;&iecy;&lcy; &laquo;&Acy;&lcy;&gcy;&ocy;&rcy;&icy;&tcy;&mcy;&raquo; &ncy;&icy;&zhcy;&iecy;, &gcy;&dcy;&iecy; &ocy;&bcy;&hardcy;&yacy;&scy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy;, &pcy;&ocy;&chcy;&iecy;&mcy;&ucy; &ecy;&tcy;&ocy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy;.</span></p> </dd> <dt id="Documentation/git-range-diff.txt---left-only"><span data-i18n="8b1462a57a3b41b7d3286c43dd56b9281f054f34d999f2f4e97b9e8d202c8053/fb" data-source="--left-only" onmousemove="i18n(this)">--left-only</span></dt> <dd> <p><span data-i18n="5861e637485d960978f2ae10ce4bced17042d939743bfc1e9c8719e7c5789f6f/3d" data-source="Suppress commits that are missing from the first specified range (or the &amp;quot;left range&amp;quot; when using the &lt;code&gt;&amp;lt;rev1&amp;gt;...&amp;lt;rev2&amp;gt;&lt;/code&gt; format)." onmousemove="i18n(this)">&Pcy;&ocy;&dcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &vcy; &pcy;&iecy;&rcy;&vcy;&ocy;&mcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&mcy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy;&iecy; (&icy;&lcy;&icy;  &quot;left range&quot;  &pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy;  <code>&lt;rev1&gt;...&lt;rev2&gt;</code> ).</span></p> </dd> <dt id="Documentation/git-range-diff.txt---right-only"><span data-i18n="ed26a4ddf71675c3eba486769410806e2e80ca3e108724a102ba7ac1df8ad6a0/81" data-source="--right-only" onmousemove="i18n(this)">--right-only</span></dt> <dd> <p><span data-i18n="3d895f59711ebe887b3b7240606dc016cf60388dc8fa2ac1164408ce572bb09b/e9" data-source="Suppress commits that are missing from the second specified range (or the &amp;quot;right range&amp;quot; when using the &lt;code&gt;&amp;lt;rev1&amp;gt;...&amp;lt;rev2&amp;gt;&lt;/code&gt; format)." onmousemove="i18n(this)">&Pcy;&ocy;&dcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &vcy;&ocy; &vcy;&tcy;&ocy;&rcy;&ocy;&mcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&mcy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy;&iecy; (&icy;&lcy;&icy;  &quot;right range&quot;  &pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy;  <code>&lt;rev1&gt;...&lt;rev2&gt;</code> ).</span></p> </dd> <dt id="Documentation/git-range-diff.txt---no-notesltrefgt"><span data-i18n="fbc0dededd8b45edc886c1e3bb03193cb7e2b1f2d27e497dbb32b06a241180a8/57" data-source="--[no-]notes[=&amp;lt;ref&amp;gt;]" onmousemove="i18n(this)">--[no-]notes[=&lt;ref&gt;]</span></dt> <dd> <p><span data-i18n="a6f4ba43309230ac521fe49bc592a46985607a9ec570c823d26ba306eba02d32/a1" data-source="This flag is passed to the &lt;code&gt;git log&lt;/code&gt; program (see &lt;a href=&quot;git-log&quot;&gt;git-log[1]&lt;/a&gt;) that generates the patches." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &fcy;&lcy;&acy;&gcy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&ocy;&gcy;&rcy;&acy;&mcy;&mcy;&iecy;  <code>git log</code>  (&scy;&mcy;.  <a href="git-log.html">git-log[1]</a> ), &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;.</span></p> </dd> <dt id="Documentation/git-range-diff.txt-ltrange1gtltrange2gt"><span data-i18n="2ed4b0520bcf35b08bb62dc0503b2cb977733e872ea1eead3baed7411ca3c06c/78" data-source="&amp;lt;range1&amp;gt; &amp;lt;range2&amp;gt;" onmousemove="i18n(this)">&lt;range1&gt; &lt;range2&gt;</span></dt> <dd> <p><span data-i18n="ad39020a3aaafe48d4d3bd030606a840bd56f8611cfcfecf11be49c0285533f6/73" data-source="Compare the commits specified by the two ranges, where &lt;code&gt;&amp;lt;range1&amp;gt;&lt;/code&gt; is considered an older version of &lt;code&gt;&amp;lt;range2&amp;gt;&lt;/code&gt;." onmousemove="i18n(this)">&Scy;&rcy;&acy;&vcy;&ncy;&icy;&tcy;&iecy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ycy;&iecy; &vcy; &dcy;&vcy;&ucy;&khcy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy;&acy;&khcy;, &gcy;&dcy;&iecy;  <code>&lt;range1&gt;</code>  &scy;&chcy;&icy;&tcy;&acy;&iecy;&tcy;&scy;&yacy; &bcy;&ocy;&lcy;&iecy;&iecy; &scy;&tcy;&acy;&rcy;&ocy;&jcy; &vcy;&iecy;&rcy;&scy;&icy;&iecy;&jcy;  <code>&lt;range2&gt;</code> .</span></p> </dd> <dt id="Documentation/git-range-diff.txt-ltrev1gt82308203ltrev2gt"><span data-i18n="07fdd3bdb8919a109f74ddae1208c9f6858c4b5d21615532dfdd509d6da36870/62" data-source="&amp;lt;rev1&amp;gt;&amp;hellip;&amp;ZeroWidthSpace;&amp;lt;rev2&amp;gt;" onmousemove="i18n(this)">&lt;rev1&gt;&hellip;&ZeroWidthSpace;&lt;rev2&gt;</span></dt> <dd> <p><span data-i18n="8109ed628a283dbda9f176ebdab7efcf4ab7c8bb2c7cdb1006e2e5542efab15b/05" data-source="Equivalent to passing &lt;code&gt;&amp;lt;rev2&amp;gt;..&amp;lt;rev1&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;rev1&amp;gt;..&amp;lt;rev2&amp;gt;&lt;/code&gt;." onmousemove="i18n(this)">&Ecy;&kcy;&vcy;&icy;&vcy;&acy;&lcy;&iecy;&ncy;&tcy; &pcy;&rcy;&ocy;&khcy;&ocy;&zhcy;&dcy;&iecy;&ncy;&icy;&yacy;  <code>&lt;rev2&gt;..&lt;rev1&gt;</code>  &icy;  <code>&lt;rev1&gt;..&lt;rev2&gt;</code> .</span></p> </dd> <dt id="Documentation/git-range-diff.txt-ltbasegtltrev1gtltrev2gt"><span data-i18n="06d8f9eceb89191942dde50410e8468fdc838c60e5312c87d24ae9e761c7bdb4/c8" data-source="&amp;lt;base&amp;gt; &amp;lt;rev1&amp;gt; &amp;lt;rev2&amp;gt;" onmousemove="i18n(this)">&lt;&bcy;&acy;&zcy;&acy;&gt; &lt;&vcy;&iecy;&rcy;&scy;&icy;&yacy;1&gt; &lt;&vcy;&iecy;&rcy;&scy;&icy;&yacy;2&gt;</span></dt> <dd> <p><span data-i18n="4080f78f1a5b87b5cbc14263224e2e19d4c144b87a2c5c0ae29ecd8a46e5e3c5/84" data-source="Equivalent to passing &lt;code&gt;&amp;lt;base&amp;gt;..&amp;lt;rev1&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;base&amp;gt;..&amp;lt;rev2&amp;gt;&lt;/code&gt;. Note that &lt;code&gt;&amp;lt;base&amp;gt;&lt;/code&gt; does not need to be the exact branch point of the branches. Example: after rebasing a branch &lt;code&gt;my-topic&lt;/code&gt;, &lt;code&gt;git range-diff my-topic@{u} my-topic@{1} my-topic&lt;/code&gt; would show the differences introduced by the rebase." onmousemove="i18n(this)">&Ecy;&kcy;&vcy;&icy;&vcy;&acy;&lcy;&iecy;&ncy;&tcy; &pcy;&rcy;&ocy;&khcy;&ocy;&zhcy;&dcy;&iecy;&ncy;&icy;&yacy;  <code>&lt;base&gt;..&lt;rev1&gt;</code>  &icy;  <code>&lt;base&gt;..&lt;rev2&gt;</code> . &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy;  <code>&lt;base&gt;</code>  &ncy;&iecy; &ocy;&bcy;&yacy;&zcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &bcy;&ycy;&tcy;&softcy; &tcy;&ocy;&chcy;&ncy;&ocy;&jcy; &tcy;&ocy;&chcy;&kcy;&ocy;&jcy; &vcy;&iecy;&tcy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;. &Pcy;&rcy;&icy;&mcy;&iecy;&rcy;: &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &vcy;&iecy;&tcy;&kcy;&icy;  <code>my-topic</code> <code>git range-diff my-topic@{u} my-topic@{1} my-topic</code>  &pcy;&ocy;&kcy;&acy;&zhcy;&iecy;&tcy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&yacy;, &vcy;&ocy;&zcy;&ncy;&icy;&kcy;&shcy;&icy;&iecy; &vcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&iecy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;.</span></p> </dd> </dl> </div> <p><span data-i18n="5edd28f60442cb1f234d826cd93ab5837212284ca4587cb560f3c641c330154b/1f" data-source="&lt;code&gt;git range-diff&lt;/code&gt; also accepts the regular diff options (see &lt;a href=&quot;git-diff&quot;&gt;git-diff[1]&lt;/a&gt;), most notably the &lt;code&gt;--color=[&amp;lt;when&amp;gt;]&lt;/code&gt; and &lt;code&gt;--no-color&lt;/code&gt; options. These options are used when generating the &amp;quot;diff between patches&amp;quot;, i.e. to compare the author, commit message and diff of corresponding old/new commits. There is currently no means to tweak most of the diff options passed to &lt;code&gt;git log&lt;/code&gt; when generating those patches." onmousemove="i18n(this)"><code>git range-diff</code>  &tcy;&acy;&kcy;&zhcy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &ocy;&bcy;&ycy;&chcy;&ncy;&ycy;&iecy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &dcy;&icy;&fcy;&fcy;&iecy;&rcy;&iecy;&ncy;&tscy;&icy;&acy;&lcy;&acy; (&scy;&mcy;.  <a href="git-diff.html">git-diff[1]</a> ), &ocy;&scy;&ocy;&bcy;&iecy;&ncy;&ncy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy;  <code>--color=[&lt;when&gt;]</code>  &icy;  <code>--no-color</code> . &Ecy;&tcy;&icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &pcy;&rcy;&icy; &gcy;&iecy;&ncy;&iecy;&rcy;&acy;&tscy;&icy;&icy;  &quot;diff between patches&quot; , &tcy;. &iecy;. &dcy;&lcy;&yacy; &scy;&rcy;&acy;&vcy;&ncy;&iecy;&ncy;&icy;&yacy; &acy;&vcy;&tcy;&ocy;&rcy;&acy;, &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy; &icy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy; &scy;&tcy;&acy;&rcy;&ycy;&khcy;/&ncy;&ocy;&vcy;&ycy;&khcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;. &Vcy; &ncy;&acy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &ncy;&iecy;&tcy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&icy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; &bcy;&ocy;&lcy;&softcy;&shcy;&icy;&ncy;&scy;&tcy;&vcy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy;, &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &vcy;  <code>git log</code>  &pcy;&rcy;&icy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&icy; &ecy;&tcy;&icy;&khcy; &pcy;&acy;&tcy;&chcy;&iecy;&jcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_output_stability"><span data-i18n="9767ae1e6e83fc508268f796a8968023af740bacbeff7cb35202c3cdb072a9ab/e5" data-source="Output stability" onmousemove="i18n(this)">Output stability</span></h2> <div> <p><span data-i18n="5fec4aca9d14be6b39dddb90c509bf2761ef19ad1c60a0e3819af6dcaf048220/2f" data-source="The output of the &lt;code&gt;range-diff&lt;/code&gt; command is subject to change. It is intended to be human-readable porcelain output, not something that can be used across versions of Git to get a textually stable &lt;code&gt;range-diff&lt;/code&gt; (as opposed to something like the &lt;code&gt;--stable&lt;/code&gt; option to &lt;a href=&quot;git-patch-id&quot;&gt;git-patch-id[1]&lt;/a&gt;). There&amp;rsquo;s also no equivalent of &lt;a href=&quot;git-apply&quot;&gt;git-apply[1]&lt;/a&gt; for &lt;code&gt;range-diff&lt;/code&gt;, the output is not intended to be machine-readable." onmousemove="i18n(this)">&Vcy;&ycy;&vcy;&ocy;&dcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>range-diff</code>  &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;. &Ocy;&ncy; &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy; &dcy;&lcy;&yacy; &ucy;&dcy;&ocy;&bcy;&ocy;&chcy;&icy;&tcy;&acy;&iecy;&mcy;&ocy;&gcy;&ocy; &fcy;&acy;&rcy;&fcy;&ocy;&rcy;&ocy;&vcy;&ocy;&gcy;&ocy; &vcy;&ycy;&vcy;&ocy;&dcy;&acy;, &acy; &ncy;&iecy; &dcy;&lcy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &vcy; &rcy;&acy;&zcy;&ncy;&ycy;&khcy; &vcy;&iecy;&rcy;&scy;&icy;&yacy;&khcy;  Git  &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &scy;&tcy;&acy;&bcy;&icy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &tcy;&iecy;&kcy;&scy;&tcy;&acy;  <code>range-diff</code>  (&vcy; &ocy;&tcy;&lcy;&icy;&chcy;&icy;&iecy; &ocy;&tcy; &chcy;&iecy;&gcy;&ocy;-&tcy;&ocy; &vcy;&rcy;&ocy;&dcy;&iecy; &ocy;&pcy;&tscy;&icy;&icy;  <code>--stable</code>  &dcy;&lcy;&yacy;  <a href="git-patch-id.html">git-patch-id[1]</a> ). &Dcy;&lcy;&yacy;  <code>range-diff</code>  &tcy;&acy;&kcy;&zhcy;&iecy; &ncy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &ecy;&kcy;&vcy;&icy;&vcy;&acy;&lcy;&iecy;&ncy;&tcy;&acy;  <a href="git-apply.html">git-apply[1]</a> , &vcy;&ycy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &ncy;&iecy; &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&ycy; &dcy;&lcy;&yacy; &mcy;&acy;&shcy;&icy;&ncy;&ncy;&ocy;&gcy;&ocy; &scy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&ncy;&icy;&yacy;.</span></p> <p><span data-i18n="be7288da98ef0413464d0a1697a2f8718dad245b99f260dd1dc8c14adc837b0d/42" data-source="This is particularly true when passing in diff options. Currently some options like &lt;code&gt;--stat&lt;/code&gt; can, as an emergent effect, produce output that&amp;rsquo;s quite useless in the context of &lt;code&gt;range-diff&lt;/code&gt;. Future versions of &lt;code&gt;range-diff&lt;/code&gt; may learn to interpret such options in a manner specific to &lt;code&gt;range-diff&lt;/code&gt; (e.g. for &lt;code&gt;--stat&lt;/code&gt; producing human-readable output which summarizes how the diffstat changed)." onmousemove="i18n(this)">&Ocy;&scy;&ocy;&bcy;&iecy;&ncy;&ncy;&ocy; &ecy;&tcy;&ocy; &kcy;&acy;&scy;&acy;&iecy;&tcy;&scy;&yacy;  true  &pcy;&rcy;&icy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&iecy; &ocy;&pcy;&tscy;&icy;&jcy; &scy;&rcy;&acy;&vcy;&ncy;&iecy;&ncy;&icy;&yacy;. &Vcy; &ncy;&acy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ocy;&pcy;&tscy;&icy;&icy;, &tcy;&acy;&kcy;&icy;&iecy; &kcy;&acy;&kcy;  <code>--stat</code> , &mcy;&ocy;&gcy;&ucy;&tcy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &vcy;&ocy;&zcy;&ncy;&icy;&kcy;&acy;&yucy;&shchcy;&iecy;&gcy;&ocy; &ecy;&fcy;&fcy;&iecy;&kcy;&tcy;&acy; &vcy;&ycy;&dcy;&acy;&vcy;&acy;&tcy;&softcy; &vcy;&ycy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &scy;&ocy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&ncy;&ocy; &bcy;&iecy;&scy;&pcy;&ocy;&lcy;&iecy;&zcy;&ncy;&ycy; &vcy; &kcy;&ocy;&ncy;&tcy;&iecy;&kcy;&scy;&tcy;&iecy;  <code>range-diff</code> . &Bcy;&ucy;&dcy;&ucy;&shchcy;&icy;&iecy; &vcy;&iecy;&rcy;&scy;&icy;&icy;  <code>range-diff</code>  &mcy;&ocy;&gcy;&ucy;&tcy; &ncy;&acy;&ucy;&chcy;&icy;&tcy;&softcy;&scy;&yacy; &icy;&ncy;&tcy;&iecy;&rcy;&pcy;&rcy;&iecy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &tcy;&acy;&kcy;&icy;&iecy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &scy;&pcy;&ocy;&scy;&ocy;&bcy;&ocy;&mcy;, &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&chcy;&ncy;&ycy;&mcy; &dcy;&lcy;&yacy;  <code>range-diff</code>  (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &dcy;&lcy;&yacy;  <code>--stat</code> , &vcy;&ycy;&dcy;&acy;&yucy;&shchcy;&iecy;&gcy;&ocy; &ucy;&dcy;&ocy;&bcy;&ocy;&chcy;&icy;&tcy;&acy;&iecy;&mcy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &scy;&ucy;&mcy;&mcy;&icy;&rcy;&ucy;&iecy;&tcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; diffstat).</span></p> </div> <h2 class="text-body-emphasis"  id="_configuration"><span data-i18n="b332c3492d5eb10a118eb6d8b0dcd689bc2477ce2ae16b303753b942b54377bc/aa" data-source="Configuration" onmousemove="i18n(this)">Configuration</span></h2> <div> <p><span data-i18n="d3e28f0a1ef19798a3a2244bd4d10ab010779afbe6b59f867da3505172888f25/4c" data-source="This command uses the &lt;code&gt;diff.color.*&lt;/code&gt; and &lt;code&gt;pager.range-diff&lt;/code&gt; settings (the latter is on by default). See &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&icy;  <code>diff.color.*</code>  &icy;  <code>pager.range-diff</code>  (&pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&icy;&jcy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;). &Scy;&mcy;.  <a href="git-config.html">git-config[1]</a> .</span></p> </div> <h2 class="text-body-emphasis"  id="_examples"><span data-i18n="e68ee04dff59551b7d1ae07a2f8a00dc61d841628948da3d2781630706a05e92/38" data-source="Examples" onmousemove="i18n(this)">Examples</span></h2> <div> <p><span data-i18n="cb171e1ccffdf16d67dbfb67e439bb5e2f1d4557aa2f5714ff3d38b92b6ad99d/f3" data-source="When a rebase required merge conflicts to be resolved, compare the changes introduced by the rebase directly afterwards using:" onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &pcy;&rcy;&icy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&icy;&tcy;&softcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ycy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;, &scy;&rcy;&acy;&zcy;&ucy; &pcy;&ocy;&scy;&lcy;&iecy; &ecy;&tcy;&ocy;&gcy;&ocy; &scy;&rcy;&acy;&vcy;&ncy;&icy;&tcy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &vcy;&ncy;&iecy;&scy;&iecy;&ncy;&ncy;&ycy;&iecy; &pcy;&rcy;&icy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&icy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yacy;:</span></p> <div> <div> <pre class="hljs language-perl">$ git range-diff @{u} @{1} @</pre> </div> </div> <p><span data-i18n="4e6ae7ce9b021e20064d6fcee7f62498d6854e7de05b271723c10fda0e232aef/c2" data-source="A typical output of &lt;code&gt;git range-diff&lt;/code&gt; would look like this:" onmousemove="i18n(this)">&Tcy;&icy;&pcy;&icy;&chcy;&ncy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy;  <code>git range-diff</code>  &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&ycy;&gcy;&lcy;&yacy;&dcy;&iecy;&tcy;&softcy; &tcy;&acy;&kcy;:</span></p> <div> <div> <pre class="hljs language-sql"><span class="hljs-operator">-</span>:  <span class="hljs-comment" title="------- &gt; 1:  0ddba11 Prepare for the inevitable!">------- &gt; 1:0ddba11 &Gcy;&ocy;&tcy;&ocy;&vcy;&softcy;&tcy;&iecy;&scy;&softcy; &kcy; &ncy;&iecy;&icy;&zcy;&bcy;&iecy;&zhcy;&ncy;&ocy;&mcy;&ucy;!</span>
<span class="hljs-number">1</span>:  c0debee <span class="hljs-operator">=</span> <span class="hljs-number">2</span>:  cab005e <span class="hljs-keyword">Add</span> a helpful message <span class="hljs-keyword">at</span> the <span class="hljs-keyword">start</span>
<span class="hljs-number">2</span>:  f00dbal <span class="hljs-operator">!</span> <span class="hljs-number">3</span>:  decafe1 <span class="hljs-keyword">Describe</span> a bug
    @@ <span class="hljs-number">-1</span>,<span class="hljs-number">3</span> <span class="hljs-operator">+</span><span class="hljs-number">1</span>,<span class="hljs-number">3</span> @@
     Author: A U Thor <span class="hljs-operator">&lt;</span>author<span class="hljs-variable">@example</span>.com<span class="hljs-operator">&gt;</span>

    <span class="hljs-operator">-</span>TODO: <span class="hljs-keyword">Describe</span> a bug
    <span class="hljs-operator">+</span><span class="hljs-keyword">Describe</span> a bug
    @@ <span class="hljs-number">-324</span>,<span class="hljs-number">5</span> <span class="hljs-operator">+</span><span class="hljs-number">324</span>,<span class="hljs-number">6</span>
      This <span class="hljs-keyword">is</span> expected.

    <span class="hljs-operator">-</span><span class="hljs-operator">+</span>What <span class="hljs-keyword">is</span> unexpected <span class="hljs-keyword">is</span> that it will also crash.
    <span class="hljs-operator">+</span><span class="hljs-operator">+</span>Unexpectedly, it also crashes. This <span class="hljs-keyword">is</span> a bug, <span class="hljs-keyword">and</span> the jury <span class="hljs-keyword">is</span>
    <span class="hljs-operator">+</span><span class="hljs-operator">+</span>still <span class="hljs-keyword">out</span> there how <span class="hljs-keyword">to</span> fix it best. See ticket #<span class="hljs-number">314</span> <span class="hljs-keyword">for</span> details.

      Contact
<span class="hljs-number">3</span>:  bedead <span class="hljs-operator">&lt;</span> <span class="hljs-operator">-</span>:  <span class="hljs-comment">------- TO-UNDO</span></pre> </div> </div> <p><span data-i18n="e60e0fe5f2e5c2c3422b2471511c64a3b26ffd7b0be7e76a845fa4649511653d/37" data-source="In this example, there are 3 old and 3 new commits, where the developer removed the 3rd, added a new one before the first two, and modified the commit message of the 2nd commit as well as its diff." onmousemove="i18n(this)">&Vcy; &ecy;&tcy;&ocy;&mcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&iecy; &iecy;&scy;&tcy;&softcy; 3 &scy;&tcy;&acy;&rcy;&ycy;&khcy; &icy; 3 &ncy;&ocy;&vcy;&ycy;&khcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;, &pcy;&rcy;&icy;&chcy;&iecy;&mcy; &rcy;&acy;&zcy;&rcy;&acy;&bcy;&ocy;&tcy;&chcy;&icy;&kcy; &ucy;&dcy;&acy;&lcy;&icy;&lcy; &tcy;&rcy;&iecy;&tcy;&icy;&jcy;, &dcy;&ocy;&bcy;&acy;&vcy;&icy;&lcy; &ncy;&ocy;&vcy;&ycy;&jcy; &pcy;&iecy;&rcy;&iecy;&dcy; &pcy;&iecy;&rcy;&vcy;&ycy;&mcy;&icy; &dcy;&vcy;&ucy;&mcy;&yacy; &icy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&lcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&iecy; &vcy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &iecy;&gcy;&ocy; &rcy;&acy;&zcy;&ncy;&icy;&tscy;&ucy;.</span></p> <p><span data-i18n="502118b5e6851a9673a5b93261ca1a8e96985a26b83a1b63409b77efbcfd4b8d/63" data-source="When the output goes to a terminal, it is color-coded by default, just like regular &lt;code&gt;git diff&lt;/code&gt;&amp;apos;s output. In addition, the first line (adding a commit) is green, the last line (deleting a commit) is red, the second line (with a perfect match) is yellow like the commit header of &lt;code&gt;git
show&lt;/code&gt;&amp;apos;s output, and the third line colors the old commit red, the new one green and the rest like &lt;code&gt;git show&lt;/code&gt;&amp;apos;s commit header." onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy; &vcy;&ycy;&vcy;&ocy;&dcy; &pcy;&ocy;&scy;&tcy;&ucy;&pcy;&acy;&iecy;&tcy; &ncy;&acy; &tcy;&iecy;&rcy;&mcy;&icy;&ncy;&acy;&lcy;, &ocy;&ncy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &icy;&mcy;&iecy;&iecy;&tcy; &tscy;&vcy;&iecy;&tcy;&ocy;&vcy;&ucy;&yucy; &mcy;&acy;&rcy;&kcy;&icy;&rcy;&ocy;&vcy;&kcy;&ucy;, &kcy;&acy;&kcy; &icy; &ocy;&bcy;&ycy;&chcy;&ncy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy;  <code>git diff</code> . &Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &pcy;&iecy;&rcy;&vcy;&acy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&acy; (&dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;) &mdash; &zcy;&iecy;&lcy;&iecy;&ncy;&acy;&yacy;, &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&yacy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&acy; (&ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;) &mdash; &kcy;&rcy;&acy;&scy;&ncy;&acy;&yacy;, &vcy;&tcy;&ocy;&rcy;&acy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&acy; (&scy; &icy;&dcy;&iecy;&acy;&lcy;&softcy;&ncy;&ycy;&mcy; &scy;&ocy;&vcy;&pcy;&acy;&dcy;&iecy;&ncy;&icy;&iecy;&mcy;) &mdash; &zhcy;&iecy;&lcy;&tcy;&acy;&yacy;, &kcy;&acy;&kcy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&ocy;&kcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &vcy;&ycy;&khcy;&ocy;&dcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;  <code>git
show</code> , &acy; &tcy;&rcy;&iecy;&tcy;&softcy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&acy; &ocy;&kcy;&rcy;&acy;&shcy;&icy;&vcy;&acy;&iecy;&tcy; &scy;&tcy;&acy;&rcy;&ycy;&jcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy; &vcy; &kcy;&rcy;&acy;&scy;&ncy;&ycy;&jcy; &tscy;&vcy;&iecy;&tcy;, &ncy;&ocy;&vcy;&ycy;&jcy; &mdash; &vcy; &zcy;&iecy;&lcy;&iecy;&ncy;&ycy;&jcy;, &acy; &ocy;&scy;&tcy;&acy;&lcy;&softcy;&ncy;&ocy;&iecy; &mdash; &kcy;&acy;&kcy; &vcy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&ocy;&kcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;  <code>git show</code> .</span></p> <p><span data-i18n="838ca4719a17ec8538240a7b8bc6935e3d91a0ec0519c976adc08d514e36c622/19" data-source="A naive color-coded diff of diffs is actually a bit hard to read, though, as it colors the entire lines red or green. The line that added &amp;quot;What is unexpected&amp;quot; in the old commit, for example, is completely red, even if the intent of the old commit was to add something." onmousemove="i18n(this)">&Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &ncy;&acy;&icy;&vcy;&ncy;&ucy;&yucy; &tscy;&vcy;&iecy;&tcy;&ocy;&vcy;&ucy;&yucy; &kcy;&ocy;&dcy;&icy;&rcy;&ocy;&vcy;&kcy;&ucy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy; &ncy;&acy; &scy;&acy;&mcy;&ocy;&mcy; &dcy;&iecy;&lcy;&iecy; &ncy;&iecy;&mcy;&ncy;&ocy;&gcy;&ocy; &scy;&lcy;&ocy;&zhcy;&ncy;&ocy; &chcy;&icy;&tcy;&acy;&tcy;&softcy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &ocy;&ncy;&acy; &ocy;&kcy;&rcy;&acy;&shcy;&icy;&vcy;&acy;&iecy;&tcy; &vcy;&scy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &vcy; &kcy;&rcy;&acy;&scy;&ncy;&ycy;&jcy; &icy;&lcy;&icy; &zcy;&iecy;&lcy;&iecy;&ncy;&ycy;&jcy; &tscy;&vcy;&iecy;&tcy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &scy;&tcy;&rcy;&ocy;&kcy;&acy;, &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&yucy;&shchcy;&acy;&yacy;  &quot;What is unexpected&quot;  &vcy; &scy;&tcy;&acy;&rcy;&ycy;&jcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;, &pcy;&ocy;&lcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &kcy;&rcy;&acy;&scy;&ncy;&acy;&yacy;, &dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &tscy;&iecy;&lcy;&softcy;&yucy; &scy;&tcy;&acy;&rcy;&ocy;&gcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy; &bcy;&ycy;&lcy;&ocy; &chcy;&tcy;&ocy;-&tcy;&ocy; &dcy;&ocy;&bcy;&acy;&vcy;&icy;&tcy;&softcy;.</span></p> <p><span data-i18n="6d09de87799a4f5ac04a772b1fa5c733d213b4ede008b413a38d952865c5d0af/31" data-source="To help with that, &lt;code&gt;range&lt;/code&gt; uses the &lt;code&gt;--dual-color&lt;/code&gt; mode by default. In this mode, the diff of diffs will retain the original diff colors, and prefix the lines with -/+ markers that have their &lt;strong&gt;background&lt;/strong&gt; red or green, to make it more obvious that they describe how the diff itself changed." onmousemove="i18n(this)">&CHcy;&tcy;&ocy;&bcy;&ycy; &pcy;&ocy;&mcy;&ocy;&chcy;&softcy; &vcy; &ecy;&tcy;&ocy;&mcy;,  <code>range</code>  &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &rcy;&iecy;&zhcy;&icy;&mcy;  <code>--dual-color</code> . &Vcy; &ecy;&tcy;&ocy;&mcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &rcy;&acy;&zcy;&ncy;&icy;&tscy;&acy; &mcy;&iecy;&zhcy;&dcy;&ucy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&yacy;&mcy;&icy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&icy;&tcy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy; &tscy;&vcy;&iecy;&tcy;&acy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy; &icy; &bcy;&ucy;&dcy;&iecy;&tcy; &scy;&ncy;&acy;&bcy;&zhcy;&iecy;&ncy;&acy; &pcy;&rcy;&iecy;&fcy;&icy;&kcy;&scy;&acy;&mcy;&icy; &scy;&tcy;&rcy;&ocy;&kcy; &scy; &mcy;&acy;&rcy;&kcy;&iecy;&rcy;&acy;&mcy;&icy; -/+ &scy; &kcy;&rcy;&acy;&scy;&ncy;&ycy;&mcy; &icy;&lcy;&icy; &zcy;&iecy;&lcy;&iecy;&ncy;&ycy;&mcy; &fcy;&ocy;&ncy;&ocy;&mcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &bcy;&ycy;&lcy;&ocy; &bcy;&ocy;&lcy;&iecy;&iecy; &ocy;&chcy;&iecy;&vcy;&icy;&dcy;&ncy;&ocy;, &chcy;&tcy;&ocy; &ocy;&ncy;&icy; &ocy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&tcy;, &kcy;&acy;&kcy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&lcy;&scy;&yacy; &scy;&acy;&mcy; &rcy;&acy;&zcy;&ncy;&icy;&tscy;&ucy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_algorithm"><span data-i18n="d704d8af25bed5a588eaf0997d1fee9364b498c095ef3dedb7c14bd0c00b6ca4/80" data-source="Algorithm" onmousemove="i18n(this)">Algorithm</span></h2> <div> <p><span data-i18n="04f179ce6b505a48e94585451d37df5486c5c713e07b41f1155fdddca6a059a8/cc" data-source="The general idea is this: we generate a cost matrix between the commits in both commit ranges, then solve the least-cost assignment." onmousemove="i18n(this)">&Ocy;&bcy;&shchcy;&acy;&yacy; &icy;&dcy;&iecy;&yacy; &tcy;&acy;&kcy;&ocy;&vcy;&acy;: &mcy;&ycy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&mcy; &mcy;&acy;&tcy;&rcy;&icy;&tscy;&ucy; &scy;&tcy;&ocy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &mcy;&iecy;&zhcy;&dcy;&ucy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;&mcy;&icy; &vcy; &ocy;&bcy;&ocy;&icy;&khcy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy;&acy;&khcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &rcy;&iecy;&shcy;&acy;&iecy;&mcy; &ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &scy; &ncy;&acy;&icy;&mcy;&iecy;&ncy;&softcy;&shcy;&iecy;&jcy; &scy;&tcy;&ocy;&icy;&mcy;&ocy;&scy;&tcy;&softcy;&yucy;.</span></p> <p><span data-i18n="9eb92dbe5c51794b914cc1f6d0a4df6073d533f790e63d5b755a8186563f92b9/f2" data-source="The cost matrix is populated thusly: for each pair of commits, both diffs are generated and the &amp;quot;diff of diffs&amp;quot; is generated, with 3 context lines, then the number of lines in that diff is used as cost." onmousemove="i18n(this)">&Mcy;&acy;&tcy;&rcy;&icy;&tscy;&acy; &scy;&tcy;&ocy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &zcy;&acy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;: &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &pcy;&acy;&rcy;&ycy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy; &ocy;&bcy;&acy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&yacy; &icy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;  &quot;diff of diffs&quot;  &scy; 3 &kcy;&ocy;&ncy;&tcy;&iecy;&kcy;&scy;&tcy;&ncy;&ycy;&mcy;&icy; &scy;&tcy;&rcy;&ocy;&kcy;&acy;&mcy;&icy;, &zcy;&acy;&tcy;&iecy;&mcy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &scy;&tcy;&rcy;&ocy;&kcy; &vcy; &ecy;&tcy;&ocy;&mcy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &scy;&tcy;&ocy;&icy;&mcy;&ocy;&scy;&tcy;&icy;.</span></p> <p><span data-i18n="a8aea91bd317502fc964f5055d4543642f520f5441c1b1e8a51ca96d5691190f/d6" data-source="To avoid false positives (e.g. when a patch has been removed, and an unrelated patch has been added between two iterations of the same patch series), the cost matrix is extended to allow for that, by adding fixed-cost entries for wholesale deletes/adds." onmousemove="i18n(this)">&CHcy;&tcy;&ocy;&bcy;&ycy; &icy;&zcy;&bcy;&iecy;&zhcy;&acy;&tcy;&softcy; &pcy;&ocy;&lcy;&ocy;&zhcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&khcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&ocy;&vcy;  false  (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &kcy;&ocy;&gcy;&dcy;&acy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &bcy;&ycy;&lcy;&ocy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ocy;, &acy; &ncy;&iecy;&scy;&vcy;&yacy;&zcy;&acy;&ncy;&ncy;&ocy;&iecy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &bcy;&ycy;&lcy;&ocy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ocy; &mcy;&iecy;&zhcy;&dcy;&ucy; &dcy;&vcy;&ucy;&mcy;&yacy; &icy;&tcy;&iecy;&rcy;&acy;&tscy;&icy;&yacy;&mcy;&icy; &ocy;&dcy;&ncy;&ocy;&jcy; &icy; &tcy;&ocy;&jcy; &zhcy;&iecy; &scy;&iecy;&rcy;&icy;&icy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&jcy;), &mcy;&acy;&tcy;&rcy;&icy;&tscy;&acy; &zcy;&acy;&tcy;&rcy;&acy;&tcy; &rcy;&acy;&scy;&shcy;&icy;&rcy;&yacy;&iecy;&tcy;&scy;&yacy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&chcy;&iecy;&scy;&tcy;&softcy; &ecy;&tcy;&ocy;, &pcy;&ucy;&tcy;&iecy;&mcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&iecy;&jcy; &scy; &fcy;&icy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&jcy; &scy;&tcy;&ocy;&icy;&mcy;&ocy;&scy;&tcy;&softcy;&yucy; &dcy;&lcy;&yacy; &ocy;&pcy;&tcy;&ocy;&vcy;&ycy;&khcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&jcy;. &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;.</span></p> <p><span data-i18n="ccc7ff3586bc2fbd7d5907eb0a983f79db0a2c8906e4ddb9d83a23930b7f19b2/97" data-source="Example: Let commits &lt;code&gt;1--2&lt;/code&gt; be the first iteration of a patch series and &lt;code&gt;A--C&lt;/code&gt; the second iteration. Let&amp;rsquo;s assume that &lt;code&gt;A&lt;/code&gt; is a cherry-pick of &lt;code&gt;2,&lt;/code&gt; and &lt;code&gt;C&lt;/code&gt; is a cherry-pick of &lt;code&gt;1&lt;/code&gt; but with a small modification (say, a fixed typo). Visualize the commits as a bipartite graph:" onmousemove="i18n(this)">&Pcy;&rcy;&icy;&mcy;&iecy;&rcy;: &pcy;&ucy;&scy;&tcy;&softcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ycy;  <code>1--2</code>  &bcy;&ucy;&dcy;&ucy;&tcy; &pcy;&iecy;&rcy;&vcy;&ocy;&jcy; &icy;&tcy;&iecy;&rcy;&acy;&tscy;&icy;&iecy;&jcy; &scy;&iecy;&rcy;&icy;&icy; &pcy;&acy;&tcy;&chcy;&iecy;&jcy;, &acy;  <code>A--C</code>  &mdash; &vcy;&tcy;&ocy;&rcy;&ocy;&jcy; &icy;&tcy;&iecy;&rcy;&acy;&tscy;&icy;&iecy;&jcy;. &Pcy;&rcy;&iecy;&dcy;&pcy;&ocy;&lcy;&ocy;&zhcy;&icy;&mcy;, &chcy;&tcy;&ocy;  <code>A</code>  &mdash; &ecy;&tcy;&ocy; &vcy;&acy;&rcy;&icy;&acy;&ncy;&tcy;  <code>2,</code> , &acy;  <code>C</code>  &mdash; &vcy;&acy;&rcy;&icy;&acy;&ncy;&tcy;  <code>1</code> , &ncy;&ocy; &scy; &ncy;&iecy;&bcy;&ocy;&lcy;&softcy;&shcy;&ocy;&jcy; &mcy;&ocy;&dcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&iecy;&jcy; (&scy;&kcy;&acy;&zhcy;&iecy;&mcy;, &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ocy;&jcy; &ocy;&pcy;&iecy;&chcy;&acy;&tcy;&kcy;&ocy;&jcy;). &Vcy;&icy;&zcy;&ucy;&acy;&lcy;&icy;&zcy;&icy;&rcy;&ucy;&jcy;&tcy;&iecy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ycy; &vcy; &vcy;&icy;&dcy;&iecy; &dcy;&vcy;&ucy;&dcy;&ocy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &gcy;&rcy;&acy;&fcy;&acy;:</span></p> <div> <div> <pre class="hljs language-css">    <span class="hljs-number">1</span>            <span class="hljs-selector-tag">A</span>

    <span class="hljs-number">2</span>            <span class="hljs-selector-tag">B</span>

                 C</pre> </div> </div> <p><span data-i18n="39741950115ec2067946dfaaba356507e65394a3f031f76e7e4e6c4827813ad1/40" data-source="We are looking for a &amp;quot;best&amp;quot; explanation of the new series in terms of the old one. We can represent an &amp;quot;explanation&amp;quot; as an edge in the graph:" onmousemove="i18n(this)">&Icy;&shchcy;&iecy;&mcy;  &quot;best&quot;  &ocy;&bcy;&hardcy;&yacy;&scy;&ncy;&iecy;&ncy;&icy;&iecy; &ncy;&ocy;&vcy;&ocy;&jcy; &scy;&iecy;&rcy;&icy;&icy; &ncy;&acy; &yacy;&zcy;&ycy;&kcy;&iecy; &scy;&tcy;&acy;&rcy;&ocy;&jcy;. &Mcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&mcy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&icy;&tcy;&softcy;  &quot;explanation&quot;  &kcy;&acy;&kcy; &rcy;&iecy;&bcy;&rcy;&ocy; &ncy;&acy; &gcy;&rcy;&acy;&fcy;&icy;&kcy;&iecy;:</span></p> <div> <div> <pre class="hljs language-lua">    <span class="hljs-number">1</span>            A
               /
    <span class="hljs-number">2</span> <span class="hljs-comment" title="--------&apos;  B">--------&apos; &Bcy;</span>

                 C</pre> </div> </div> <p><span data-i18n="0de8cac099940ea26bff043351950f0171227824b9f0304f6214552ab5e72a6f/93" data-source="This explanation comes for &amp;quot;free&amp;quot; because there was no change. Similarly &lt;code&gt;C&lt;/code&gt; could be explained using &lt;code&gt;1&lt;/code&gt;, but that comes at some cost c&amp;gt;0 because of the modification:" onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &ocy;&bcy;&hardcy;&yacy;&scy;&ncy;&iecy;&ncy;&icy;&iecy; &ocy;&tcy;&ncy;&ocy;&scy;&icy;&tcy;&scy;&yacy; &kcy;  &quot;free&quot; , &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &ncy;&iecy; &pcy;&rcy;&ocy;&icy;&zcy;&ocy;&shcy;&lcy;&ocy;. &Pcy;&ocy;&dcy;&ocy;&bcy;&ncy;&ycy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;  <code>C</code>  &mcy;&ocy;&zhcy;&ncy;&ocy; &ocy;&bcy;&hardcy;&yacy;&scy;&ncy;&icy;&tcy;&softcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>1</code>  , &ncy;&ocy; &ecy;&tcy;&ocy; &pcy;&ocy;&tcy;&rcy;&iecy;&bcy;&ucy;&iecy;&tcy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &zcy;&acy;&tcy;&rcy;&acy;&tcy; c&gt;0 &icy;&zcy;-&zcy;&acy; &mcy;&ocy;&dcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy;:</span></p> <div> <div> <pre class="hljs language-lua">    <span class="hljs-number">1</span> <span class="hljs-comment">----.      A</span>
          |    /
    <span class="hljs-number">2</span> <span class="hljs-comment">----+---&apos;  B</span>
          |
          `<span class="hljs-comment">----- C</span>
          c&gt;<span class="hljs-number">0</span></pre> </div> </div> <p><span data-i18n="ca7df9741c8b0f12441c415afe08fd9fce46fc9e3061a3c6a852d816554f6881/b7" data-source="In mathematical terms, what we are looking for is some sort of a minimum cost bipartite matching; &lt;code&gt;1&lt;/code&gt; is matched to &lt;code&gt;C&lt;/code&gt; at some cost, etc. The underlying graph is in fact a complete bipartite graph; the cost we associate with every edge is the size of the diff between the two commits&amp;apos; patches. To explain also new commits, we introduce dummy nodes on both sides:" onmousemove="i18n(this)">&Scy; &mcy;&acy;&tcy;&iecy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&jcy; &tcy;&ocy;&chcy;&kcy;&icy; &zcy;&rcy;&iecy;&ncy;&icy;&yacy;, &mcy;&ycy; &icy;&shchcy;&iecy;&mcy; &scy;&vcy;&ocy;&iecy;&gcy;&ocy; &rcy;&ocy;&dcy;&acy; &dcy;&vcy;&ucy;&scy;&tcy;&ocy;&rcy;&ocy;&ncy;&ncy;&iecy;&iecy; &scy;&ocy;&pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &scy; &mcy;&icy;&ncy;&icy;&mcy;&acy;&lcy;&softcy;&ncy;&ocy;&jcy; &scy;&tcy;&ocy;&icy;&mcy;&ocy;&scy;&tcy;&softcy;&yucy;;  <code>1</code>  &scy;&ocy;&pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &scy;  <code>C</code>  &zcy;&acy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ucy;&yucy; &pcy;&lcy;&acy;&tcy;&ucy; &icy; &tcy;. &dcy;. &Bcy;&acy;&zcy;&ocy;&vcy;&ycy;&jcy; &gcy;&rcy;&acy;&fcy; &ncy;&acy; &scy;&acy;&mcy;&ocy;&mcy; &dcy;&iecy;&lcy;&iecy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &pcy;&ocy;&lcy;&ncy;&ycy;&jcy; &dcy;&vcy;&ucy;&dcy;&ocy;&lcy;&softcy;&ncy;&ycy;&jcy; &gcy;&rcy;&acy;&fcy;; &scy;&tcy;&ocy;&icy;&mcy;&ocy;&scy;&tcy;&softcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy; &mcy;&ycy; &scy;&vcy;&yacy;&zcy;&ycy;&vcy;&acy;&iecy;&mcy; &scy; &kcy;&acy;&zhcy;&dcy;&ycy;&mcy; &rcy;&iecy;&bcy;&rcy;&ocy;&mcy;, &mdash; &ecy;&tcy;&ocy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy; &rcy;&acy;&zcy;&ncy;&icy;&tscy;&ycy; &mcy;&iecy;&zhcy;&dcy;&ucy; &pcy;&acy;&tcy;&chcy;&acy;&mcy;&icy; &dcy;&vcy;&ucy;&khcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;. &CHcy;&tcy;&ocy;&bcy;&ycy; &ocy;&bcy;&hardcy;&yacy;&scy;&ncy;&icy;&tcy;&softcy; &ncy;&ocy;&vcy;&ycy;&iecy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ycy;, &mcy;&ycy; &vcy;&vcy;&ocy;&dcy;&icy;&mcy; &fcy;&icy;&kcy;&tcy;&icy;&vcy;&ncy;&ycy;&iecy; &ucy;&zcy;&lcy;&ycy; &scy; &ocy;&bcy;&iecy;&icy;&khcy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;:</span></p> <div> <div> <pre class="hljs language-lua">    <span class="hljs-number">1</span> <span class="hljs-comment">----.      A</span>
          |    /
    <span class="hljs-number">2</span> <span class="hljs-comment">----+---&apos;  B</span>
          |
    o     `<span class="hljs-comment">----- C</span>
          c&gt;<span class="hljs-number">0</span>
    o            o

    o            o</pre> </div> </div> <p><span data-i18n="a005de1f2dfaecd12c4204cf597e067549433ee18bbb098ec5e9e17e992ab1f3/3e" data-source="The cost of an edge &lt;code&gt;o--C&lt;/code&gt; is the size of &lt;code&gt;C&lt;/code&gt;&amp;apos;s diff, modified by a fudge factor that should be smaller than 100%. The cost of an edge &lt;code&gt;o--o&lt;/code&gt; is free. The fudge factor is necessary because even if &lt;code&gt;1&lt;/code&gt; and &lt;code&gt;C&lt;/code&gt; have nothing in common, they may still share a few empty lines and such, possibly making the assignment &lt;code&gt;1--C&lt;/code&gt;, &lt;code&gt;o--o&lt;/code&gt; slightly cheaper than &lt;code&gt;1--o&lt;/code&gt;, &lt;code&gt;o--C&lt;/code&gt; even if &lt;code&gt;1&lt;/code&gt; and &lt;code&gt;C&lt;/code&gt; have nothing in common. With the fudge factor we require a much larger common part to consider patches as corresponding." onmousemove="i18n(this)">&Scy;&tcy;&ocy;&icy;&mcy;&ocy;&scy;&tcy;&softcy; &rcy;&iecy;&bcy;&rcy;&acy;  <code>o--C</code>  &mdash; &ecy;&tcy;&ocy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy; &rcy;&acy;&zcy;&ncy;&icy;&tscy;&ycy;  <code>C</code> , &mcy;&ocy;&dcy;&icy;&fcy;&icy;&tscy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&jcy; &kcy;&ocy;&ecy;&fcy;&fcy;&icy;&tscy;&icy;&iecy;&ncy;&tcy;&ocy;&mcy; &ncy;&iecy;&tcy;&ocy;&chcy;&ncy;&ocy;&scy;&tcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &bcy;&ycy;&tcy;&softcy; &mcy;&iecy;&ncy;&softcy;&shcy;&iecy; 100%. &Scy;&tcy;&ocy;&icy;&mcy;&ocy;&scy;&tcy;&softcy; &lcy;&iecy;&zcy;&vcy;&icy;&yacy;  <code>o--o</code>  &bcy;&iecy;&scy;&pcy;&lcy;&acy;&tcy;&ncy;&ocy;. &Kcy;&ocy;&ecy;&fcy;&fcy;&icy;&tscy;&icy;&iecy;&ncy;&tcy; &vcy;&ycy;&dcy;&ucy;&mcy;&kcy;&icy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;, &pcy;&ocy;&tcy;&ocy;&mcy;&ucy; &chcy;&tcy;&ocy; &dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy;  <code>1</code>  &icy;  <code>C</code>  &ncy;&iecy; &icy;&mcy;&iecy;&yucy;&tcy; &ncy;&icy;&chcy;&iecy;&gcy;&ocy; &ocy;&bcy;&shchcy;&iecy;&gcy;&ocy;, &ocy;&ncy;&icy; &vcy;&scy;&iecy; &rcy;&acy;&vcy;&ncy;&ocy; &mcy;&ocy;&gcy;&ucy;&tcy; &icy;&mcy;&iecy;&tcy;&softcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&ucy;&scy;&tcy;&ycy;&khcy; &scy;&tcy;&rcy;&ocy;&kcy; &icy; &tcy;&ocy;&mcy;&ucy; &pcy;&ocy;&dcy;&ocy;&bcy;&ncy;&ocy;&iecy;, &chcy;&tcy;&ocy;, &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;, &dcy;&iecy;&lcy;&acy;&iecy;&tcy; &ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;  <code>1--C</code> ,  <code>o--o</code>  &ncy;&iecy;&mcy;&ncy;&ocy;&gcy;&ocy; &dcy;&iecy;&shcy;&iecy;&vcy;&lcy;&iecy;, &chcy;&iecy;&mcy;  <code>1--o</code> ,  <code>o--C</code> , &dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy;  <code>1</code>  &icy;  <code>C</code>  &ncy;&iecy; &icy;&mcy;&iecy;&yucy;&tcy; &ncy;&icy;&chcy;&iecy;&gcy;&ocy; &ocy;&bcy;&shchcy;&iecy;&gcy;&ocy;. &Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &fcy;&acy;&kcy;&tcy;&ocy;&rcy;&acy; &vcy;&ycy;&dcy;&ucy;&mcy;&kcy;&icy; &ncy;&acy;&mcy; &tcy;&rcy;&iecy;&bcy;&ucy;&iecy;&tcy;&scy;&yacy; &gcy;&ocy;&rcy;&acy;&zcy;&dcy;&ocy; &bcy;&ocy;&lcy;&softcy;&shcy;&acy;&yacy; &ocy;&bcy;&shchcy;&acy;&yacy; &chcy;&acy;&scy;&tcy;&softcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &scy;&chcy;&icy;&tcy;&acy;&tcy;&softcy; &pcy;&acy;&tcy;&chcy;&icy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&mcy;&icy;.</span></p> <p><span data-i18n="c78015d61bb08fbe899f8f86fc08f04755ef51a682be904928d4085c46ea4f5d/b6" data-source="The overall time needed to compute this algorithm is the time needed to compute n+m commit diffs and then n*m diffs of patches, plus the time needed to compute the least-cost assignment between n and m diffs. Git uses an implementation of the Jonker-Volgenant algorithm to solve the assignment problem, which has cubic runtime complexity. The matching found in this case will look like this:" onmousemove="i18n(this)">&Ocy;&bcy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy;, &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy;&iecy; &dcy;&lcy;&yacy; &vcy;&ycy;&chcy;&icy;&scy;&lcy;&iecy;&ncy;&icy;&yacy; &ecy;&tcy;&ocy;&gcy;&ocy; &acy;&lcy;&gcy;&ocy;&rcy;&icy;&tcy;&mcy;&acy;, &rcy;&acy;&vcy;&ncy;&ocy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&icy;, &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy;&mcy;&ucy; &dcy;&lcy;&yacy; &vcy;&ycy;&chcy;&icy;&scy;&lcy;&iecy;&ncy;&icy;&yacy; n+m &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; n*m &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy; &pcy;&acy;&tcy;&chcy;&iecy;&jcy;, &pcy;&lcy;&yucy;&scy; &vcy;&rcy;&iecy;&mcy;&yacy;, &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy;&iecy; &dcy;&lcy;&yacy; &vcy;&ycy;&chcy;&icy;&scy;&lcy;&iecy;&ncy;&icy;&yacy; &ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &scy; &ncy;&acy;&icy;&mcy;&iecy;&ncy;&softcy;&shcy;&iecy;&jcy; &scy;&tcy;&ocy;&icy;&mcy;&ocy;&scy;&tcy;&softcy;&yucy; &mcy;&iecy;&zhcy;&dcy;&ucy; n &icy; m &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&yacy;&mcy;&icy;.  Git  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&yucy; &acy;&lcy;&gcy;&ocy;&rcy;&icy;&tcy;&mcy;&acy; &Dcy;&zhcy;&ocy;&ncy;&kcy;&iecy;&rcy;&acy;-&Vcy;&ocy;&lcy;&softcy;&gcy;&iecy;&ncy;&acy;&ncy;&tcy;&acy; &dcy;&lcy;&yacy; &rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy;, &scy;&lcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy; &icy;&mcy;&iecy;&iecy;&tcy; &kcy;&ucy;&bcy;&icy;&chcy;&iecy;&scy;&kcy;&ucy;&yucy; &scy;&lcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy;. &Scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&iecy;, &ncy;&acy;&jcy;&dcy;&iecy;&ncy;&ncy;&ocy;&iecy; &vcy; &ecy;&tcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy;, &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&ycy;&gcy;&lcy;&yacy;&dcy;&iecy;&tcy;&softcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;:</span></p> <div> <div> <pre class="hljs language-sql">    <span class="hljs-number">1</span> <span class="hljs-comment" title="----.      A">----. &Acy;</span>
          <span class="hljs-operator">|</span>    <span class="hljs-operator">/</span>
    <span class="hljs-number">2</span> <span class="hljs-comment" title="----+---&apos;  B">----+---&apos; &Bcy;</span>
       .<span class="hljs-comment">--+-----&apos;</span>
    o <span class="hljs-operator">-</span><span class="hljs-string">&apos;  `----- C
          c&gt;0
    o ---------- o

    o ---------- o</span></pre> </div> </div> </div> <h2 class="text-body-emphasis"  id="_see_also"><span data-i18n="2fa97693b70fa87b95b2d1bdf9558e4ac65d5e82d145f13a03849c4d9c4957a9/40" data-source="See also" onmousemove="i18n(this)">See also</span></h2> <div> <p><a href="git-log.html"><span data-i18n="1f55fd45aa04c2bb1818970cf9d94a4be516cc1cb64a68a51f3ff588bdd4f748/04" data-source="git-log[1]" onmousemove="i18n(this)">git-log[1]</span></a></p> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/git-range-diff">https://git-scm.com/docs/git-range-diff</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                            <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-read-tree.html">
                            git read-tree                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-rebase.html">
                            git rebase                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-receive-pack.html">
                            git receive-pack                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-reflog.html">
                            git reflog                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-remote.html">
                            git remote                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-remote-ext.html">
                            git remote-ext                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-remote-fd.html">
                            git remote-fd                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                   <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="git-range-diff.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>